package com.zhn.evsi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhn.evsi.domain.dto.Market.MarketOrderDTO;
import com.zhn.evsi.domain.dto.Market.MarketOrderSearchDTO;
import com.zhn.evsi.domain.entity.Market.MarketOrder;

import java.util.List;

public interface IMarketOrderService extends IService<MarketOrder> {

    /**
     * 商品列表list查询
     *
     * @param marketOrderDTO - 模糊查询
     * */
    List<MarketOrder> orderList(MarketOrderDTO marketOrderDTO);

    /**
     * 新增输入商品名称自动填充
     *
     * @param search - 模糊查询自动填充字段
     * */
    List<MarketOrderSearchDTO> search(String search);

    void addOrders(MarketOrderDTO marketOrderDTO);
}
